package com.teemor.common.idempotentspringbootstarter.utils;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Description: 本地缓存。禁止在分布式环境下使用
 * @author zhoulk
 * @date: 2020/5/14
 */
public class LocalCacheUtils implements CacheUtils {

    private static final Map<String, Object> cache = new LinkedHashMap<>();


    @Override
    public boolean addCache(String key) {
        return false;
    }

    @Override
    public boolean addCache(String key, Long sec) {
        return false;
    }

    @Override
    public boolean addCache(String key, Object value) {
        return false;
    }

    @Override
    public boolean addCache(String key, Object value, Long sec) {
        return false;
    }

    @Override
    public boolean hasKey(String key) {
        return false;
    }

    @Override
    public boolean removeKey(String key) {
        return false;
    }

    @Override
    public Object getValue(String key) {
        return null;
    }

    @Override
    public long ttl(String key) {
        return 0;
    }
}
